package com.atguigu.gulimall.order.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author 满超
 * @date 2020/06/27
 **/
@FeignClient("gulimall-product")
public interface ProductFeign {

    @RequestMapping("product/spuinfo/info/{id}")
    R info(@PathVariable("id") Long id);

    @GetMapping("/product/spuinfo/skuId/{id}")
    public R getSpuInfoBySkuId(@PathVariable("id") Long skuId);
}
